package com.jxsd.edu.cn.struts2.services;

import com.jxsd.edu.cn.struts2.models.Auth;
import com.jxsd.edu.cn.struts2.models.Loginview;
import com.jxsd.edu.cn.struts2.models.UserInfo;

//个人信息管理
public interface UserService 
{
	
	/**
	 * user  login  the  system
	 * @return    
	 * success  login success
	 * failed   login failed
	 * */
    public  Loginview  doLogin(Loginview  login);
    /**
     * register  a  user
     * @return  success  register  success
     *          failed   register  failed 
     * */
    public  String  doRegister(Auth auth);
    /**
     * active  an auth
     * */
    public  String  doActiveUser(Auth auth);
    /**
     * change  the password
     * */
    public  String  doChangePwd(String  UserId,String  oldpwd, String  newpwd);
    /**
     * change  the  image
     * */
    public  void  doUpdateImage(UserInfo  user);
    /**
     * retake  the  password
     * */
    public  String  doRetakePwd(UserInfo  user);
    /**
     * improve  the  user information
     * */
    public  void   doUpdateInfo(UserInfo user);
    /**
     * send  an  email  to  user
     * */
    public  void  sendEmail(Auth  auth);
    /**
     * 获取用户的信息
     * @param  paramName  用户ID或者用户昵称
     *         value      具体的用户ID或者用户昵称
     * */
    public  UserInfo  getUserInfo(String  paramName,String  value);
 }
